"""
处理日期时间相关
创建日期: 24/11/17
最后修改:
功能:


"""


# 月份和星期的英文缩写
months_eng_short = ('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec')
weekdays_eng_short = ('Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun')


# 将RTC类获取的时间元组转换成utime是时间元组
def rtc_to_utime(time_tup_rtc):
    return (time_tup_rtc[0], time_tup_rtc[1], time_tup_rtc[2], time_tup_rtc[4], time_tup_rtc[5], time_tup_rtc[6], time_tup_rtc[3], 0)


# 将utime的时间元组转换为RTC的
def utime_to_rtc(time_tup_utime):
    return (time_tup_utime[0], time_tup_utime[1], time_tup_utime[2], time_tup_utime[6], time_tup_utime[3], time_tup_utime[4], time_tup_utime[5], 0)


        
            